<?php /* Smarty version Smarty-3.1.8, created on 2012-06-14 06:50:38
         compiled from "../includes/interface/templates\animalAjouter.tpl" */ ?>
<?php /*%%SmartyHeaderCode:215924fd989bee3cb45-48431086%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '52cd22ea765cf3a1afa7402b8ea9d55e6cd11bb4' => 
    array (
      0 => '../includes/interface/templates\\animalAjouter.tpl',
      1 => 1339656129,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '215924fd989bee3cb45-48431086',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'animal' => 0,
    'typeAnimal' => 0,
    'couleur' => 0,
    'listeCouleur' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_4fd989bf3ddf90_50819609',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_4fd989bf3ddf90_50819609')) {function content_4fd989bf3ddf90_50819609($_smarty_tpl) {?><?php if (!is_callable('smarty_function_html_options')) include 'C:\\wamp\\www\\trunk\\includes\\interface\\smarty\\libs\\plugins\\function.html_options.php';
?>
<section id="content">
	

    <!-- Tableau obligatoire ! Structure du calendrier ! -->
    <table class="ds_box" cellpadding="0" cellspacing="0" id="ds_conclass" style="display: none;">
        <tr>
            <td id="ds_calclass"></td>
        </tr>
    </table>

    <!-- -->

	<h1 class="article"><?php if (isset($_smarty_tpl->tpl_vars['animal']->value)){?><?php echo $_smarty_tpl->getConfigVariable('MODIFIER');?>
 <?php echo $_smarty_tpl->tpl_vars['animal']->value->getPrenom();?>
<?php }else{ ?><?php echo $_smarty_tpl->getConfigVariable('NOUVEL_ANIMAL');?>
<?php }?></h2>

    <form id="formID" class="article buttons" name="formulaire" action="?action=<?php if (isset($_smarty_tpl->tpl_vars['animal']->value)){?>modifierAnimal<?php }else{ ?>ajouterAnimal<?php }?>" method="post" enctype="multipart/form-data">
        
        <input type="hidden" name="id" value="<?php if (isset($_smarty_tpl->tpl_vars['animal']->value)){?><?php echo $_smarty_tpl->tpl_vars['animal']->value->getId();?>
<?php }?>" />
        <fieldset class="form-text">
            <label><?php echo $_smarty_tpl->getConfigVariable('NOM_SPA');?>
<em>*</em></label>
            <input id="nom" class="validate[required,custom[onlyLetter],length[0,20]] text-input" type="text" name="nom" value="<?php if (isset($_smarty_tpl->tpl_vars['animal']->value)){?><?php echo $_smarty_tpl->tpl_vars['animal']->value->getNom();?>
<?php }?>" />
        </fieldset>

        <fieldset class="form-text">
            <label><?php echo $_smarty_tpl->getConfigVariable('DEUXIEME_NOM');?>
</label>
            <input type="text" name="secondNom" value="<?php if (isset($_smarty_tpl->tpl_vars['animal']->value)){?><?php echo $_smarty_tpl->tpl_vars['animal']->value->getSecondNom();?>
<?php }?>" id="nom2" 
            class="validate[optional,custom[onlyLetter],length[0,20]] text-input" />
        </fieldset>  

        <!-- Utiliser du javascipt et jquery pour lié les deux listes déroulantes pour avoir qqch d'évolutif-->

        <fieldset>
            <label><?php echo $_smarty_tpl->getConfigVariable('SEXE');?>
<em>*</em></label>
            <select name="sexe" value="<?php if (isset($_smarty_tpl->tpl_vars['animal']->value)){?><?php echo $_smarty_tpl->tpl_vars['animal']->value->getSexe();?>
<?php }?>" id="sexe" class="validate[required]" >
            	<option value="" selected="selected">---</option>
                <option value="Male"><?php echo $_smarty_tpl->getConfigVariable('MALE');?>
</option>
                <option value="Femelle"><?php echo $_smarty_tpl->getConfigVariable('FEMELLE');?>
</option>
                <option value="Indetermine"><?php echo $_smarty_tpl->getConfigVariable('INDETERMINE');?>
 </option>
            </select>
        </fieldset>  
        <fieldset>
            <label><?php echo $_smarty_tpl->getConfigVariable('TYPE_ANIMAL');?>
<em>*</em></label>
            <select name="TypeAnimal" onchange="showRaces(this.value)">
                <option value="" selected="selected">---</option>
                <?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']["unType"])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']["unType"]);
$_smarty_tpl->tpl_vars['smarty']->value['section']["unType"]['name'] = "unType";
$_smarty_tpl->tpl_vars['smarty']->value['section']["unType"]['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['typeAnimal']->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']["unType"]['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']["unType"]['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["unType"]['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["unType"]['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']["unType"]['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["unType"]['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']["unType"]['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']["unType"]['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']["unType"]['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["unType"]['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']["unType"]['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']["unType"]['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']["unType"]['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']["unType"]['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']["unType"]['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["unType"]['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']["unType"]['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']["unType"]['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']["unType"]['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']["unType"]['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']["unType"]['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']["unType"]['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']["unType"]['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["unType"]['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["unType"]['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["unType"]['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']["unType"]['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["unType"]['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["unType"]['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']["unType"]['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["unType"]['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']["unType"]['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']["unType"]['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']["unType"]['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']["unType"]['total']);
?>
                    <option value="<?php echo $_smarty_tpl->tpl_vars['typeAnimal']->value[$_smarty_tpl->getVariable('smarty')->value['section']['unType']['index']]->getNom();?>
"><?php echo $_smarty_tpl->tpl_vars['typeAnimal']->value[$_smarty_tpl->getVariable('smarty')->value['section']['unType']['index']]->getNom();?>
</option>
                <?php endfor; endif; ?>
                
            </select>

        </fieldset>
        <fieldset>
            <label><?php echo $_smarty_tpl->getConfigVariable('COULEUR');?>
<em>*</em></label>
            	<select name="couleur" value="<?php if (isset($_smarty_tpl->tpl_vars['couleur']->value)){?><?php echo $_smarty_tpl->tpl_vars['animal']->value->getCouleur();?>
<?php }?>" id="couleur" class="validate[required]">
                <option value="" selected="selected">---</option>
                <?php echo smarty_function_html_options(array('output'=>$_smarty_tpl->tpl_vars['listeCouleur']->value,'values'=>$_smarty_tpl->tpl_vars['listeCouleur']->value),$_smarty_tpl);?>

                
                </select>
        </fieldset>  
        <fieldset>
            <label><?php echo $_smarty_tpl->getConfigVariable('RACE');?>
<em>*</em></label>
            <select name="TypeRace" id="txtHint" >
            	
            </select>         
        </fieldset>
        <fieldset class="form-text">
            <label><?php echo $_smarty_tpl->getConfigVariable('LONGUEUR_POIL');?>
</label>
            <input type="text" name="longueurPoil" value="<?php if (isset($_smarty_tpl->tpl_vars['animal']->value)){?><?php echo $_smarty_tpl->tpl_vars['animal']->value->getLongueurPoil();?>
<?php }?>" id="longueurPoil" 
            class="validate[optional,custom[onlyNumber],length[0,3]]" />
        </fieldset> 

        <fieldset class="form-text">
            <label><?php echo $_smarty_tpl->getConfigVariable('DATE_NAISSANCE');?>
</label>
            <input type="text" name="dateNaissance" onClick="ds_sh(this);" value="<?php if (isset($_smarty_tpl->tpl_vars['animal']->value)){?><?php echo $_smarty_tpl->tpl_vars['animal']->value->getDateNaissance();?>
<?php }?>" id="dateNaissance" 
            class="validate[optional,custom[date]] text-input"/>
        </fieldset>

        <fieldset class="form-text">
            <label><?php echo $_smarty_tpl->getConfigVariable('DATE_DECES');?>
</label>
            <input type="text" name="dateDeces" onClick="ds_sh(this);" value="<?php if (isset($_smarty_tpl->tpl_vars['animal']->value)){?><?php echo $_smarty_tpl->tpl_vars['animal']->value->dateDeces();?>
<?php }?>" id="dateDeces" 
            class="validate[optional,custom[date]] text-input"/>
        </fieldset> 

        <fieldset class="form-text">
            <label><?php echo $_smarty_tpl->getConfigVariable('NO_PUCE');?>
</label>
            <input type="text" name="puceNo" value="<?php if (isset($_smarty_tpl->tpl_vars['animal']->value)){?><?php echo $_smarty_tpl->tpl_vars['animal']->value->getPuceNo();?>
<?php }?>" id="puce" 
            class="validate[optional,custom[onlyNumber],funcCall[validate2fields],length[15,15]]"/>
        </fieldset>  
        <fieldset class="form-text">
            <label><?php echo $_smarty_tpl->getConfigVariable('IMPLANTATION');?>
</label>
            <select name="implantation" value="<?php if (isset($_smarty_tpl->tpl_vars['animal']->value)){?><?php echo $_smarty_tpl->tpl_vars['animal']->value->getimplantation();?>
<?php }?>" id="implantation" class="validate[optional,funcCall[validate2fields]]">
                <option value="">---</option>
                <option value="DejaImplantee"><?php echo $_smarty_tpl->getConfigVariable('DEJA_IMPLANTE');?>
</option>
                <option value="ImplanteeSPA"><?php echo $_smarty_tpl->getConfigVariable('IMPLANTE_SPA');?>
</option>
                <option value="PasPuce"><?php echo $_smarty_tpl->getConfigVariable('PAS_PUCE');?>
</option>
            </select>
        </fieldset>  
        <fieldset class="form-text">
            <label><?php echo $_smarty_tpl->getConfigVariable('TATOUAGE');?>
</label>
            <input type="text" name="tatouage" value="<?php if (isset($_smarty_tpl->tpl_vars['animal']->value)){?><?php echo $_smarty_tpl->tpl_vars['animal']->value->getTatouage();?>
<?php }?>" id="tatouage" class="validate[optional]"/>
        </fieldset>  

        <fieldset class="form-text">
            <label><?php echo $_smarty_tpl->getConfigVariable('MEDAILLE');?>
</label>
            <input type="text" name="medaille" value="<?php if (isset($_smarty_tpl->tpl_vars['animal']->value)){?><?php echo $_smarty_tpl->tpl_vars['animal']->value->getMedaille();?>
<?php }?>" id="medaille" class="validate[optional]"/>
        </fieldset> 
        
        <fieldset class="image">
            <!-- opens directly to the camera (Android 3.0+) -->  
            <input type="file" name="photoProfil" accept="image/*;capture=camera" /> 
 
         </fieldset>

        <fieldset class="form-text long haut">
            <label><?php echo $_smarty_tpl->getConfigVariable('PARTICULARITES');?>
</label>
            <textarea name="remarque"rows="2" cols="50" value="<?php if (isset($_smarty_tpl->tpl_vars['animal']->value)){?><?php echo $_smarty_tpl->tpl_vars['animal']->value->getRemarque();?>
<?php }?>" id="particularites" class="validate[optional]"></textarea>
        </fieldset> 

        <fieldset class="form-actions">
            <input type="reset" name="Annuler" value="<?php echo $_smarty_tpl->getConfigVariable('ANNULER');?>
" onclick=";javascript:return confirm('<?php echo $_smarty_tpl->getConfigVariable('MESSAGE_ANNULER');?>
')" />
    <?php if (isset($_smarty_tpl->tpl_vars['animal']->value)){?><input type="submit" class="submit" name="modifierAnimal" value="<?php echo $_smarty_tpl->getConfigVariable('MODIFIER');?>
" /><?php }else{ ?><input type="submit" class="submit" name="ajouterAnimal" value="<?php echo $_smarty_tpl->getConfigVariable('ENREGISTRER');?>
" /><?php }?>
        </fieldset>

        


</form>



</section>
<?php }} ?>